package com.ml.mall.entity.delivery;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName(value = "sys_order_delivery")
public class SysOrderDelivery implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_at", fill = FieldFill.INSERT)
    private Date createAt;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_at", fill = FieldFill.INSERT_UPDATE)
    private Date updateAt;

    /**
     * 是否删除
     */
    @ApiModelProperty(value = "是否删除")
    @TableField(value = "is_delete",fill = FieldFill.INSERT)
    @TableLogic(value = "0",delval = "1")
    private Integer isDelete;


    /**
     * 采购订单号
     */
    @TableField(value = "oid")
    private Long oid;

    /**
     * 采购商家订单号
     */
    @TableField(value = "supplier_oid")
    private String supplierOid;

    /**
     * 物流单号
     */
    @TableField(value = "delivery_oid")
    private String deliveryOid;

    /**
     * 物流公司
     */
    @TableField(value = "delivery_name")
    private String deliveryName;

    /**
     * 配送类型：自配送0 1 物流公司
     */
    @TableField(value = "delivery_type")
    private String deliveryType;

    /**
     * 状态
     */
    @TableField(value = "state")
    private Integer state;

    private static final long serialVersionUID = 1L;
}